package com.ruoyi.project.cms.type.domain;

import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

public class CMSType extends BaseEntity {


    private static final long serialVersionUID = 1L;

    /** 岗位序号 */
    private Long typeId;

    /** 岗位名称 */
    private String typeName;

    /** 岗位排序 */
    private String typeSort;

    /** 状态（0正常 1停用） */
    private String status;


    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Long getTypeId() {
        return typeId;
    }

    public void setTypeId(Long typeId) {
        this.typeId = typeId;
    }


    @NotBlank(message = "公告类别名称不能为空")
    @Size(min = 0, max = 64, message = "公告类别名长度不能超过64个字符")
    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getTypeSort() {
        return typeSort;
    }

    public void setTypeSort(String typeSort) {
        this.typeSort = typeSort;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "CMSType{" +
                "typeId=" + typeId +
                ", typeName='" + typeName + '\'' +
                ", typeSort='" + typeSort + '\'' +
                ", status='" + status + '\'' +
                "} " + super.toString();
    }
}
